package com.cauli.manage.operationLog.model.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Cauli
 * @date 2023-03-28 12:00
 * @description 操作日志返回参数
 */
@Data
@ApiModel(value = "OperationLogVO", description = "操作日志返回参数")
public class OperationLogVO {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("操作日志ID")
    private Long operationLogId;

    @ApiModelProperty("操作详情")
    private String detail;

    @ApiModelProperty("操作资源")
    private String source;

    @ApiModelProperty("操作名称")
    private String operation;

    @ApiModelProperty("平台(0管理端 1网盘)")
    private Integer platform;

    @ApiModelProperty("请求类型")
    private String requestMethod;

    @ApiModelProperty("请求URL")
    private String requestUrl;

    @ApiModelProperty("操作结果")
    private String result;

    @ApiModelProperty("终端IP地址")
    private String terminal;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("操作时间")
    private String time;
}
